<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel='stylesheet' href='<c:url value="/css/common.css" />' type='text/css' media='all' />
<link rel='stylesheet' href='<c:url value="/css/admission.css" />' type='text/css' media='all' />
<link rel='stylesheet' href='<c:url value="/css/student.css" />' type='text/css' media='all' />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>


<script type="text/javascript">
function uploadExcel(){
	var file = $('#file').val();

	if(file == '') {
	alert('Please choose file to upload');
	return false;
	}
	var dots = file.split('.');
	var fileExt = '.' + dots[dots.length - 1].toLowerCase();
	if(('.' + ['xls', 'xlxs'].join('.')).indexOf(fileExt) == -1) {
	alert("Please choose only Excel-2003(.xls) file format.");
	return false;
	}
	document.forms["excelupload"].submit();
	}
</script>


</head>
<body>
<jsp:include page="../common/header.jsp" />
    <div class="content-outer" >
     <div class="content">
		<div id="content-header"> 
		  <img src="<c:url value="/images/student_details_logo.jpg" />" alt="Student_details_logo">
		  <h1>Student Details</h1>
		  <h3>View Details</h3>
		  <div id="app-back-button">							
		    <a onclick="history.back(); return false;" href="#"><img border="0" src="<c:url value="/images/buttons/back.png"/>" alt="Back"></a>
		  </div>
		</div>
		<div id="inner-tab-menu">
		  <ul>
		    <li><a href="/student/view_all">View all</a></li>
		    <li><a href="/student/advanced_search">Advanced</a></li>
		  </ul>
		</div>
		
		<!-- start content html--> 
		  <form action="upload.htm" method="post" enctype="multipart/form-data" id="excelupload" name="excelupload" >
			<div style="height: auto; width: 98%; padding: 4px; margin-top: 5px; margin-bottom: 5px; border: 2px solid #aaa; font-size: 13px; text-align: left; float: left; background-color: #fff">
			<table width="100%" border="0" cellspacing="0" cellpadding="2">
			<tbody><tr>
			<td width="49%" valign="top">Upload an Excel sheet containing Participants’ Entry list.</td>
			<td width="20%" valign="top"><!--<input type="file" name="users" id="users" />
			<input
			type="submit" value="Go" class="buttonBtn blueBtn smallBtn"
			style="cursor: pointer;">-->
			<input type="file" name="file" id="file" tabindex="10"></td>
			<td width="26%" valign="top"><!--<input type="file" name="users" id="users" />
			<input
			type="submit" value="Go" class="buttonBtn blueBtn smallBtn"
			style="cursor: pointer;">--> <input type="submit" name="upload" id="upload" value="Upload" onclick="return uploadExcel();" tabindex="11"></td>
			</tr>
			<tr>
			<td valign="top" style="border-top: 1px solid #ccc" colspan="4"><a href="http://www.bookingpulse.com/tms/templates/Tournament_Singles_Upload_Template.xls" style="text-decoration: underline"><strong>Click here</strong></a>
			to download a demo file for the appropriate template format.</td>
			</tr>
			</tbody></table>
			</div>
 		  </form>
		<!-- end content html-->     
      
      </div>
      </div>
<jsp:include page="../common/footer.jsp" /> 
</body>
</html>